package com.example.mystoryapp2.data.network.service

import com.example.mystoryapp2.domain.UserInfo
import retrofit2.Call
import retrofit2.http.Body
import retrofit2.http.POST

interface UserInfoService {
    @POST("user/login")
    fun login(@Body userInfo:UserInfo): Call<String>

    @POST("user/register")
    fun register(@Body userInfo: UserInfo):Call<String>

    @POST("user/isValid")
    fun isValid(@Body jwt:String?):Call<Boolean>

    @POST("user/getUserinfo")
    fun getUserinfo(@Body jwt:String?):Call<UserInfo>
}